
package paper.image;

import java.awt.geom.*;
import java.awt.Rectangle;

import paper.image.ImageConstants;

public class ImageSegment
{

	Rectangle location;
	int descriptiveLocation;
	double density; // b/w
	int identity; // is line, box? 
	double fontheight;
	String content;
	
	public ImageSegment (Rectangle initialRect){
		location=initialRect;

	}

	public Rectangle getRectangle(){
		return location;
	}	
	public int getHeight(){
		return (int) location.getHeight();
	}
	public int getWidth(){
		return (int) location.getWidth();
	}
	
	public void setDensity(double density){
		System.out.println("Density:"+density);
		this.density=density;
	}
	public double getDensity(){
		return density;
	}

	public void setIdentity(int identity){
		this.identity=identity;
	}

	public int getIdentity(){
		return identity;
	}
	public void setDescriptiveLocation(int descriptiveLocation){
		this.descriptiveLocation=descriptiveLocation;
	}
	public int getDescriptiveLocation(){
		return descriptiveLocation;
	}	
}

/* Modeline for ViM {{{
 * vim: set ts=4:
 * vim600: fdm=marker fdl=0 fdc=3:
 * }}} */

